package cn.iocoder.yudao.module.reservation.controller.admin.member.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 会员 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MemberRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "461")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "会员编号")
    @ExcelProperty("会员编号")
    private String code;

    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("用户名")
    private String userName;

    @Schema(description = "密码")
    @ExcelProperty("密码")
    private String password;

    @Schema(description = "昵称", example = "芋艿")
    @ExcelProperty("昵称")
    private String nickName;

    @Schema(description = "性别")
    @ExcelProperty("性别")
    private Integer gender;

    @Schema(description = "出生日期")
    @ExcelProperty("出生日期")
    private LocalDateTime birthday;

    @Schema(description = "身份证号")
    @ExcelProperty("身份证号")
    private String idNumber;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("联系电话")
    private String phone;

    @Schema(description = "电子邮箱")
    @ExcelProperty("电子邮箱")
    private String email;

    @Schema(description = "注册时间")
    @ExcelProperty("注册时间")
    private LocalDateTime registerDate;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("mrs_member_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

}